package cc.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * TODO
 *
 * @author My
 * @date 2021/6/22 14:55
 */
@Entity
@Table(name = "t_department")
public class Test implements Serializable {
    @Id
    @Column(name = "id")
    private int id;
    @Column(name = "d_name")
    private String d_name;

    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getNum() {
        return d_name;
    }
    public void setNum(String d_name) {
        this.d_name = d_name;
    }
    public Test(int id, String d_name) {
        this.id = id;
        this.d_name = d_name;
    }
    public Test() {    }

    @Override
    public String toString() {
        return "Test{" +
                "id=" + id +
                ", d_name=" + d_name +
                '}';
    }

    public void setNum() {
    }
}
